<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改地图站点信息')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-point-edit" th:object="${topAgvPoint}">
        <input name="id" th:field="*{id}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">点位名称：</label>
            <div class="col-sm-8">
                <input name="pointTitle" th:field="*{pointTitle}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">点位X坐标：</label>
            <div class="col-sm-8">
                <input name="pointLocX" th:field="*{pointLocX}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">点位Y坐标：</label>
            <div class="col-sm-8">
                <input name="pointLocY" th:field="*{pointLocY}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">点位实际X坐标：</label>
            <div class="col-sm-8">
                <input name="pointRealLocX" th:field="*{pointRealLocX}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">点位实际Y坐标：</label>
            <div class="col-sm-8">
                <input name="pointRealLocY" th:field="*{pointRealLocY}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">左侧站点编号：</label>
            <div class="col-sm-8">
                <input name="leftPointId" th:field="*{leftPointId}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">上方站点编号：</label>
            <div class="col-sm-8">
                <input name="topPointId" th:field="*{topPointId}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">右侧站点编号：</label>
            <div class="col-sm-8">
                <input name="rightPointId" th:field="*{rightPointId}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">下方站点编号：</label>
            <div class="col-sm-8">
                <input name="bottomPointId" th:field="*{bottomPointId}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">状态 1可用 0不可用：</label>
            <div class="col-sm-8">
                <input name="state" th:field="*{state}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">权重 排序使用：</label>
            <div class="col-sm-8">
                <input name="weight" th:field="*{weight}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">描述：</label>
            <div class="col-sm-8">
                <input name="remark" th:field="*{remark}" class="form-control" type="text">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var prefix = ctx + "mapManagement/point";
    $("#form-point-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-point-edit').serialize());
        }
    }
</script>
</body>
</html>